import js from "@eslint/js";
import globals from "globals";
import pluginVue from "eslint-plugin-vue";
import { defineConfig } from "eslint/config";

export default defineConfig([
  {
    files: ["**/*.{js,mjs,cjs,vue}"],
    plugins: { js },
    extends: ["js/recommended"],
    languageOptions: { globals: globals.browser },
    rules:{
      'for-direction': 'error',
      'array-element-newline': 'off',
      'indent': [
        'off',
        2,
        {
          SwitchCase: 1,
          flatTernaryExpressions: true
        }
      ],
    }
  },
  pluginVue.configs["flat/essential"],
]
);
